import request from '@/config/index'
const baseUrl = '/field-config';

/*-------------------------------自定义字段--------------------------------------*/
// 列表
export const ApiFieldsList = (params:any) => {
	return request.get({ url: `${baseUrl}/page`, params });
};

// 添加
export const ApiFieldsListAdd = (data:any) => {
	return request.post({ url: `${baseUrl}/add-submit`, data });
};

// 修改
export const ApiFieldsListUpdate = (data:any) => {
	return request.post({ url: `${baseUrl}/edit-submit`, data });
};

// 删除
export const ApiFieldsListDelete = (params:any) => {
	return request.get({ url: `${baseUrl}/destroy`, params });
};

// 详情
export const ApiFieldsListDetail = (params:any) => {
	return request.get({ url: `${baseUrl}/get`, params });
};

